/*
 * @Author: your name
 * @Date: 2022-01-10 17:24:02
 * @LastEditTime: 2022-01-10 17:32:07
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \sdyoa\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('../views/Home/index.vue')
  },
  {
    path: '/login',
    component: () => import('../views/Login/index.vue')
  }
]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
